import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DramaListEntity {
	int? id;
	String? title;
	int? sort;
	String? vid;
	int? money;
	@JSONField(name: "is_pay")
	int? isPay;
	int? ctime;

	DramaListEntity();

	factory DramaListEntity.fromJson(Map<String, dynamic> json) => $DramaListEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaListEntityToJson(this);

	DramaListEntity copyWith({int? id, String? title, int? sort, String? vid, int? money, int? isPay, int? ctime}) {
		return DramaListEntity()
			..id= id ?? this.id
			..title= title ?? this.title
			..sort= sort ?? this.sort
			..vid= vid ?? this.vid
			..money= money ?? this.money
			..isPay= isPay ?? this.isPay
			..ctime= ctime ?? this.ctime;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}